package com.dianda.dao;

import com.dianda.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User,Integer> {
    @Query(value="select * from t_users t where t.telephone=?1 and t.password=?2",nativeQuery = true)
    public User login(String telephone,String password);
}
